package Demo;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int money = 15;
        System.out.println("你消费的金额为"+money);
        System.out.println("请选择要支付的方式：1.银行卡 2.支付宝 3.微信支付");
        Scanner scanner = new Scanner(System.in);

        switch (scanner.nextInt()){
            case 1:
                Pay yhkpay = new yhkPay();
                yhkpay.pay(money);
            break;

            case 2:
                Pay zfbpay = new zfbPay();
                zfbpay.pay(money);
                break;

            case 3:
                Pay wxpay = new wxPay();
                wxpay.pay(money);
                break;
       }
    }
}
